package demo.spring.framework.beans.factory.annotation;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import demo.vo.UserVO;

@Configuration
public class ConfigurationDemo {

    @Bean(name = "Stan")
    public UserVO entitlement() {
        UserVO ent = new UserVO();
        ent.setName("Stan");
        ent.setAge(31);
        return ent;
    }

    @Bean(name = "Nini")
    public UserVO entitlement2() {
        UserVO ent = new UserVO();
        ent.setName("Nini");
        ent.setAge(2);
        return ent;
    }
}
